package su2010.puz;

import java.util.ArrayList;
import java.util.List;

/**
 * Class which contains feature vector of training example, and its
 * attached class.
 * @author Mateja
 *
 */
public class FeatureVector {
	
	public FeatureVector(String exampleClass) {
		this.features = new ArrayList<Float>();
		this.exampleClass = exampleClass;
	}

	private List<Float> features;
	private String exampleClass;
	
	public List<Float> getFeatures() {
		return features;
	}
	
	public String getExampleClass() {
		return exampleClass;
	}
	
	public int size(){
		return features.size();
	}
	public void appendFeatures(float[] features){
		for(float feat : features)
			this.features.add(feat);
	}
}
